home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / ccd0605.iso / Software / Shareware / Programare / winhex / FAT LFN Entry.txt < prev    next >
Text File  |  2005-05-02  |  711b  |  30 lines

  1. template "FAT Directory Entry"
  2.  
  3. // Template by Roger R÷hrig and Stefan Fleischmann
  4.  
  5. // To be applied to a sector of a VFAT (FAT16 or FAT32)
  6. // drive that contains a directory. Only suitable for
  7. // LFN (long filename) directory entries.
  8.  
  9. description "Long entry format"
  10. applies_to disk
  11. requires 11 0F
  12. multiple
  13.  
  14. begin
  15.    hex 1            "Sequence number"
  16.     char16[5]    "Filename (5 chars, FF-padded)"
  17.     goto 14
  18.     char16[6]    "Filename (next 6 chars)"
  19.     goto 28
  20.     char16[2]    "Filename (next 2 chars)"
  21.     goto 11
  22.     hex 1            "0F = LFN entry"
  23.     move            -1
  24.     binary        "Attributes ( - -a-dir-vol-s-h-r)"
  25.     read-only byte "(reserved)"
  26.     hex 1            "SFN checksum"
  27.     goto 26
  28.     uint16        "16-bit cluster # (always 0)"
  29.     move 4
  30. end